<%@ include file="../../common/init.jsp" %>

<div class="adminStore">
	<div id="tabs">
	    <ul>
	        <li><a href="#storeList"><spring:message code="admin.store.list" /></a></li>
	        <li><a href="ajax/store?action=addStore&from=adminStore"><spring:message code="admin.store.add.or.edit" /></a></li>
	    </ul>
	    
		<div id="storeList">
			<display:table name="stores">
				<display:column property="id" />
				<display:column property="name" />
				<display:column property="type.typeName" />
				<display:column property="owner.fullname" />
				<display:column property="address.fullAddress" />
				<display:column href="/store?action=editStore&from=adminStore" paramId="storeId" paramProperty="id" />
			</display:table>
		</div>
	</div>

	
	<script type="text/javascript">
	    jQuery(function() {
	        jQuery(".adminStore #tabs").tabs();
	    });
    </script>
</div>